package com.zb.service.impl;

import com.zb.service.ZjStoreBoundLogService;
import com.zb.vo.StoreBoundVo;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/1/12 0012
 **/
@Component
public class StoreBoundServiceLog {
    private static StoreBoundServiceLog storeBoundServiceLog;
    @Resource
    private ZjStoreBoundLogService storeBoundLogService;

    @PostConstruct
    public void init() {
        storeBoundServiceLog = this;
        storeBoundServiceLog.storeBoundLogService = this.storeBoundLogService;
    }

    /**
     * 保存出库日志
     * @param storeBoundVo
     */
    public static void saveOutboundLog(StoreBoundVo storeBoundVo) {
        storeBoundServiceLog.storeBoundLogService.saveOutboundLog(storeBoundVo);
    }

    /**
     * 保存出库日志
     * @param storeBoundVos
     */
    public static void saveOutboundLog(List<StoreBoundVo> storeBoundVos) {
        storeBoundServiceLog.storeBoundLogService.saveOutboundLog(storeBoundVos);
    }

    /**
     * 保存入库日志
     * @param storeBoundVo
     */
    public static void saveInboundLog(StoreBoundVo storeBoundVo) {
        storeBoundServiceLog.storeBoundLogService.saveInboundLog(storeBoundVo);
    }

    /**
     * 保存入库日志
     * @param storeBoundVos
     */
    public static void saveInboundLog(List<StoreBoundVo> storeBoundVos) {
        storeBoundServiceLog.storeBoundLogService.saveInboundLog(storeBoundVos);
    }


}
